package server

import (
	"errors"
	"watcher/server/config"
	"watcher/server/http"
)

type Server interface {
	Run()
}

func NewServe(srv string, conf config.Conf) (Server, error) {
	switch srv {
	case "http":
		return http.NewHttpServer(conf)
	case "rpc":
	}
	return nil, errors.New("unsupported")
}
